/*
 * Created on 16-Apr-2006
 * Actualis Center
 *
 */
package org.bookie.framework.services;

import java.io.IOException;
import java.io.PrintWriter;

import org.apache.tapestry.IRequestCycle;

/**
 * Specially created response renderer
 * 
 * @author marcus.matern@gmail.com
 * 
 */
public interface EmailResponseRenderer {

	/**
	 * Renders response in given request cycle 
	 * @param cycle
	 * @param html
	 * @return
	 * @throws IOException
	 */
	public abstract String renderResponse(IRequestCycle cycle, boolean html)
			throws IOException;

	/**
	 * Writer injection method
	 * @param writer
	 */
	public abstract void setWriter(PrintWriter writer);

}